/*     */ package com.zimbra.cs.ldap;
/*     */ 
/*     */ import com.zimbra.common.util.Log;
/*     */ import com.zimbra.common.util.ZimbraLog;
/*     */ import com.zimbra.cs.account.Entry.EntryType;
/*     */ import com.zimbra.cs.account.gal.GalOp;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public enum LdapUsage
/*     */ {
/*  27 */   ADD_ALIAS, 
/*  28 */   ADD_ALIAS_ACCOUNT, 
/*  29 */   ADD_ALIAS_DL, 
/*  30 */   ADD_GROUP_MEMBER, 
/*  31 */   AUTO_PROVISION, 
/*  32 */   AUTO_PROVISION_ADMIN_SEARCH, 
/*  33 */   COMPARE, 
/*  34 */   CREATE_ACCOUNT, 
/*  35 */   CREATE_COS, 
/*  36 */   CREATE_DATASOURCE, 
/*  37 */   CREATE_DISTRIBUTIONLIST, 
/*  38 */   CREATE_DOMAIN, 
/*  39 */   CREATE_DYNAMICGROUP, 
/*  40 */   CREATE_IDENTITY, 
/*  41 */   CREATE_SERVER, 
/*  42 */   CREATE_UCSERVICE, 
/*  43 */   CREATE_SHARELOCATOR, 
/*  44 */   CREATE_SIGNATURE, 
/*  45 */   CREATE_XMPPCOMPONENT, 
/*  46 */   CREATE_ZIMLET, 
/*  47 */   DELETE_ACCOUNT, 
/*  48 */   DELETE_COS, 
/*  49 */   DELETE_DATASOURCE, 
/*  50 */   DELETE_DISTRIBUTIONLIST, 
/*  51 */   DELETE_DOMAIN, 
/*  52 */   DELETE_DYNAMICGROUP, 
/*  53 */   DELETE_IDENTITY, 
/*  54 */   DELETE_SERVER, 
/*  55 */   DELETE_ALWAYSONCLUSTER, 
/*  56 */   DELETE_UCSERVICE, 
/*  57 */   DELETE_SHARELOCATOR, 
/*  58 */   DELETE_SIGNATURE, 
/*  59 */   DELETE_XMPPCOMPONENT, 
/*  60 */   DELETE_ZIMLET, 
/*  61 */   HEALTH_CHECK, 
/*  62 */   LDAP_AUTH_EXTERNAL, 
/*  63 */   LDAP_AUTH_ZIMBRA, 
/*  64 */   GAL, 
/*  65 */   GAL_AUTOCOMPLETE, 
/*  66 */   GAL_SEARCH, 
/*  67 */   GAL_SYNC, 
/*  68 */   GAL_LEGACY, 
/*  69 */   GAL_LEGACY_AUTOCOMPLETE, 
/*  70 */   GAL_LEGACY_SEARCH, 
/*  71 */   GAL_LEGACY_SYNC, 
/*  72 */   GET_COS, 
/*  73 */   GET_DOMAIN, 
/*  74 */   GET_ENTRY, 
/*  75 */   GET_GLOBALCONFIG, 
/*  76 */   GET_GLOBALGRANT, 
/*  77 */   GET_GROUP_MEMBER, 
/*  78 */   GET_GROUP_UNIT, 
/*  79 */   GET_SCHEMA, 
/*  80 */   GET_SERVER, 
/*  81 */   GET_ALWAYSONCLUSTER, 
/*  82 */   GET_UCSERVICE, 
/*  83 */   GET_SHARELOCATOR, 
/*  84 */   GET_XMPPCOMPONENT, 
/*  85 */   GET_ZIMLET, 
/*  86 */   MODIFY_ENTRY, 
/*  87 */   MODIFY_ACCOUNT, 
/*  88 */   MODIFY_ALIAS, 
/*  89 */   MODIFY_CALRESOURCE, 
/*  90 */   MODIFY_COS, 
/*  91 */   MODIFY_DATASOURCE, 
/*  92 */   MODIFY_DISTRIBUTIONLIST, 
/*  93 */   MODIFY_DOMAIN, 
/*  94 */   MODIFY_DYNAMICGROUP, 
/*  95 */   MODIFY_GLOBALCONFIG, 
/*  96 */   MODIFY_GLOBALGRANT, 
/*  97 */   MODIFY_IDENTITY, 
/*  98 */   MODIFY_MIMETYPE, 
/*  99 */   MODIFY_SERVER, 
/* 100 */   MODIFY_UCSERVICE, 
/* 101 */   MODIFY_SHARELOCATOR, 
/* 102 */   MODIFY_SIGNATURE, 
/* 103 */   MODIFY_XMPPCOMPONENT, 
/* 104 */   MODIFY_ZIMLET, 
/* 105 */   PING, 
/* 106 */   REMOVE_ALIAS, 
/* 107 */   REMOVE_ALIAS_ACCOUNT, 
/* 108 */   REMOVE_ALIAS_DL, 
/* 109 */   REMOVE_GROUP_MEMBER, 
/* 110 */   RENAME_ACCOUNT, 
/* 111 */   RENAME_COS, 
/* 112 */   RENAME_DATASOURCE, 
/* 113 */   RENAME_DISTRIBUTIONLIST, 
/* 114 */   RENAME_DYNAMICGROUP, 
/* 115 */   RENAME_IDENTITY, 
/* 116 */   RENAME_DOMAIN, 
/* 117 */   RENAME_SIGNATURE, 
/* 118 */   RENAME_UCSERVICE, 
/* 119 */   RENAME_XMPPCOMPONENT, 
/* 120 */   SEARCH, 
/* 121 */   SET_PASSWORD, 
/* 122 */   EXTERNAL_GROUP, 
/* 123 */   SMIME_LOOKUP, 
/* 124 */   NGINX_LOOKUP, 
/* 125 */   UNITTEST, 
/* 126 */   UPGRADE, 
/*     */   
/* 128 */   GENERIC, 
/* 129 */   ADD, 
/* 130 */   DELETE, 
/* 131 */   MOD, 
/* 132 */   MODRDN;
/*     */   
/*     */   private LdapUsage() {}
/* 135 */   public static LdapUsage modifyEntryfromEntryType(Entry.EntryType entryType) { switch (entryType) {
/* 136 */     case ACCOUNT:  return MODIFY_ACCOUNT;
/* 137 */     case ALIAS:  return MODIFY_ALIAS;
/* 138 */     case CALRESOURCE:  return MODIFY_CALRESOURCE;
/* 139 */     case COS:  return MODIFY_COS;
/* 140 */     case DATASOURCE:  return MODIFY_DATASOURCE;
/* 141 */     case DISTRIBUTIONLIST:  return MODIFY_DISTRIBUTIONLIST;
/* 142 */     case DOMAIN:  return MODIFY_DOMAIN;
/* 143 */     case DYNAMICGROUP:  return MODIFY_DYNAMICGROUP;
/* 144 */     case GLOBALCONFIG:  return MODIFY_GLOBALCONFIG;
/* 145 */     case GLOBALGRANT:  return MODIFY_GLOBALGRANT;
/* 146 */     case IDENTITY:  return MODIFY_IDENTITY;
/* 147 */     case MIMETYPE:  return MODIFY_MIMETYPE;
/* 148 */     case SERVER:  return MODIFY_SERVER;
/* 149 */     case UCSERVICE:  return MODIFY_UCSERVICE;
/* 150 */     case SIGNATURE:  return MODIFY_SIGNATURE;
/* 151 */     case XMPPCOMPONENT:  return MODIFY_XMPPCOMPONENT;
/* 152 */     case ZIMLET:  return MODIFY_ZIMLET; }
/* 153 */     return MODIFY_ENTRY;
/*     */   }
/*     */   
/*     */   public static LdapUsage fromGalOp(GalOp galOp)
/*     */   {
/* 158 */     if (galOp == null) {
/* 159 */       ZimbraLog.ldap.warn("unknown GAL op");
/* 160 */       return GAL;
/*     */     }
/* 162 */     switch (galOp) {
/*     */     case autocomplete: 
/* 164 */       return GAL_AUTOCOMPLETE;
/*     */     case search: 
/* 166 */       return GAL_SEARCH;
/*     */     case sync: 
/* 168 */       return GAL_SYNC;
/*     */     }
/* 170 */     ZimbraLog.ldap.warn("unknown GAL op");
/* 171 */     return GAL;
/*     */   }
/*     */   
/*     */   public static LdapUsage fromGalOpLegacy(GalOp galOp)
/*     */   {
/* 176 */     if (galOp == null) {
/* 177 */       ZimbraLog.ldap.warn("unknown GAL op");
/* 178 */       return GAL_LEGACY;
/*     */     }
/* 180 */     switch (galOp) {
/*     */     case autocomplete: 
/* 182 */       return GAL_LEGACY_AUTOCOMPLETE;
/*     */     case search: 
/* 184 */       return GAL_LEGACY_SEARCH;
/*     */     case sync: 
/* 186 */       return GAL_LEGACY_SYNC;
/*     */     }
/* 188 */     ZimbraLog.ldap.warn("unknown GAL op");
/* 189 */     return GAL_LEGACY;
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/ldap/LdapUsage.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */